package com.wzcl.app.dao.repository;

import com.wzcl.app.dao.model.WorkShowReviews;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;

public interface WorkShowReviewsRepository extends JpaSpecificationExecutor, JpaRepository<WorkShowReviews, Integer> {
    //通过id查询点评内容
    @Query(value = "select wsr from WorkShowReviews wsr where wsr.id = ?1")
    WorkShowReviews findReviewsById(Integer id);
}
